package com.imooc.repository;

import com.imooc.dataobject.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author liuhuan
 * @date 2018/7/5 16:02
 * @description
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail,String> {

    /**
     * find by orderId
     * @param orderId
     * @return
     */
    List<OrderDetail> findByOrderId(String orderId);
}
